package com.hxkj.dao.impl;

import com.hxkj.dao.UserManagementDao;
import com.hxkj.domain.po.SysUser;
import com.hxkj.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class UserManagementDaoImpl implements UserManagementDao {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<SysUser> selectUserList(SysUser sysUser) {
        return userMapper.selectUserList(sysUser);
    }

    @Override
    public SysUser getUser(SysUser sysUser) {
        return userMapper.getUser(sysUser);
    }

    @Override
    public int modifyUser(SysUser sysUser) {
        return userMapper.modifyUser(sysUser);
    }

    @Override
    public List<SysUser> selectAllUserId() {
        return userMapper.selectAllUserId();
    }

    @Override
    public SysUser selectUserByAccount(SysUser sysUser) {
        return userMapper.selectUserByAccount(sysUser);
    }

    public int modifyUserStatus(SysUser sysUser){
        return userMapper.modifyUserStatus(sysUser);
    }
}
